<? if(!defined('IN_MDL')) exit('Access Denied');?>
<? include $this->gettpl('header');?> 

<link href="<?=APPPUBLIC?>Styles/Page.css" rel="stylesheet" type="text/css" />
<table width="100%" border="0" cellpadding="0" cellspacing="0">
  <tr>
    <td bgcolor="#e6e6e6"><table width="920" border="0" align="center" cellpadding="0" cellspacing="0">
      <tr>
        <td width="200" valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="0">
         <tr>
            <td height="40"><img src="<?=APPPUBLIC?>Images/Categories/NewProduces.gif" width="175" height="20" /></td>
              <tr>
            <td height="40"><a href="<? geturl('mclist')?>" class="Categories_Menu_a"><img src="<?=APPPUBLIC?>Images/Public/CZ.png" width="80" height="25" border="0" /></a></td>
          </tr>          
            <? foreach((array)$day_list as $key => $val) {?>
            <tr>
            <td><a href="<? goods_url(array('day'=>$key))?>" class="Categories_Menu_a"><?=$val?></a></td>
            </tr>
			<?}?>	

          <tr>
            <td height="20"></td>
            </tr>
          <? if($cat_list) { ?>
          <tr>
            <td height="40"><img src="<?=APPPUBLIC?>Images/Categories/Categories.gif"  /></td>
            </tr>
         <? foreach((array)$cat_list as $key => $val) {?>
            <tr>
            <td><?=$val['level_space']?><? if($val['level']>0) { ?><img src="<?=APPPUBLIC?>Images/joinbottom.gif"><? } ?><a href="<? goods_url(array('cat'=>$val['cat_id']))?>" class="Categories_Menu_a" title=<?=$val['url']?>><?=$val['cat_name']?></a></td>
            </tr>
			<?}?>	
        <? } ?>
          <tr>
            <td height="20"></td>
            </tr>
		<? if($size_list) { ?>
          <tr>
            <td height="25" valign="top"><img src="<?=APPPUBLIC?>Images/Categories/Sizes.gif"  /></td>
            </tr>
		  <? if($size) { ?>
			<tr>
            <td><div class="msize_s"><? echo $size_list[$size]?></div>&nbsp;<a href="<? goods_url(array('size'=>'-1'))?>"><img src=<?=APPPUBLIC?>Images/Public/Remove_1.gif border=0></a></td>
            </tr>
			  
		  <? } else { ?>
		  <tr><td>
		  <? foreach((array)$size_list as $key => $val) {?>
		  
           <a href="<? goods_url(array('size'=>$key))?>" class="msize"><?=$val?></a>
			
			<?}?></td>
			</tr>
		  <? } ?>
		  
		 <? } ?>
<? if($color_list) { ?>
          <tr>
            <td height="20"></td>
            </tr>
          <tr>
            <td height="25" valign="top"><img src="<?=APPPUBLIC?>Images/Categories/Colors.gif"  /></td>
          </tr>  
		<? if($color) { ?>
			<tr>
            <td><img src="<?=WEB_PUBLIC_URL?>speclogo/<? echo $color_list[$color]?>" border=0>&nbsp;<a href="<? goods_url(array('color'=>'-1'))?>"><img src=<?=APPPUBLIC?>Images/Public/Remove_1.gif border=0></a></td>
            </tr>
			  
		  <? } else { ?> <tr> 
		  <td >
		  <? foreach((array)$color_list as $key => $val) {?>
           <div class="mccolor"><a href="<? goods_url(array('color'=>$key))?>" class="Categories_Menu_a"><img src=	<?=WEB_PUBLIC_URL?>speclogo/<?=$val?> border=0 ></a>
            </div>
			<?}?>
			</td>
			</tr>
		  <? } ?>			
           <? } ?>	  
         <? if($brand_list) { ?>

		   <tr>
            <td height="20"></td>
            </tr>
<tr>
            <td height="26" valign="top"><img src="<?=APPPUBLIC?>Images/Categories/Brands.gif"   /></td>
            </tr>
		  <? if($brand) { ?>

			<tr>
            <td><? echo $brand_list[$brand]['brand_name']?>&nbsp;<a  href="<? goods_url(array('brand'=>'-1'))?>" ><img src=<?=APPPUBLIC?>Images/Public/Remove.gif border=0></a></td>
            </tr>
			<tr>
            <td><a href="<? goods_url(array('brand'=>'-1'))?>" class="Categories_Menu_a">更多品牌...</a></td>
            </tr>  

		  <? } else { ?>
		  <? foreach((array)$brand_list as $key => $val) {?>
            <tr>
			            <td><a href="<? goods_url(array('brand'=>$val['brand_id'] ) )?>" class="Categories_Menu_a" title="<?=$val['brand_name_zn']?>"><?=$val['brand_name']?></a></td>

             
            </tr>
			<?}?>	
		  <? } ?>
            <? } ?>
  <? if($price_list) { ?>

           <tr>
            <td height="20"></td>
            </tr>
          <tr>
            <td height="25" valign="top"><img src="<?=APPPUBLIC?>Images/Categories/Price.gif"  /></td>
            </tr>
			<tr>
            <td>
			<? if($price) { ?>
				<tr>
				<td><img src=	"<?=APPPUBLIC?>Images/Categories/P_<? echo ($price)?>.gif" border=0>&nbsp;<a href="<? goods_url(array('price'=>'-1'))?>"><img src=<?=APPPUBLIC?>Images/Public/Remove.gif border=0></a></td>
				</tr> 
			  
		   <? } else { ?>
			  <tr> <td>
			  <? foreach((array)$price_list as $key => $val) {?>
			 
				<div class="mcprice"><a href="<? goods_url(array('price'=>$key))?>" class="Categories_Menu_a"><img src=	"<?=APPPUBLIC?>Images/Categories/P_<? echo ($key)?>.gif" border=0></a>
				</div>
			 
			 
			<?}?>
			</td>
			</tr>

		 <? } ?>  
		<? } ?>         
            <tr>
            <td height="20"></td>
            </tr>           
          <tr>
            <td height="20"></td>
            </tr>
          <tr>
            <td></td>
            </tr>
        </table></td>
        <td width="720" valign="top" bgcolor="#FFFFFF"><table width="700" border="0" align="center" cellpadding="0" cellspacing="0">
          <tr>
            <td height="1" colspan="2" bgcolor="#e6e6e6"></td>
            </tr>
            <tr>
              <td height="40" colspan="2" class="Title"><?=$cat_name?></td></tr>
          <tr>
            <td width="100%" height="40" colspan="2" bgcolor="#f6f6f6"><table border="0" cellspacing="0" cellpadding="0">
            <tr><td><?=$nav_url?></td></tr>
              </table></td>
            </tr>
           <? if($goods_list) { ?>
          <tr>
            <td width="50%" height="30" class="line_L_1">排序：<?=$set_orderby?></td>
            <td width="50%" height="30" align="right" class="line_L_1"><a href="<? goods_url(array('psize'=>'0'))?>" class="Categories_Menu_a">显示全部</a> | 每页显示：<?=$set_psize?></td>
            </tr>
        </table>
          <table width="700" align="center" cellpadding="0" cellspacing="0">
          <tr><td align="center">
          
           <? foreach((array)$goods_list as $key => $val) {?>
            <? include $this->gettpl('goods_show');?>
            
			<?}?>	
          
          </td></tr>
          </table>

		  <?=$multipage?> 
          <? } else { ?>  
   		<? include $this->gettpl('nogoods');?>
  	<? } ?>
          </td>
        </tr>
       
    </table></td>
  </tr>
</table>

<? include $this->gettpl('footer');?>